import request from '@/utils/request.js'

export const reqGetPacketList = (data) => request.get('/redPackets', { params: data })

export const reqChangePacketStatus = (id, data) => request.put('/redPackets/status/' + id, data)

export const reqGetPacketDrawList = (id, data) => request.put('/redPackets/records/' + id, data)

export const reqAddPacket = (data) => request.post('/redPackets', data) 